﻿using DearlerPlatfrom.Common.Md5Module;
using DearlerPlatfrom.Service.CustomerAppDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DearlerPlatfrom.Service.CustomerApp
{
    public partial class CustomerService
    {
        public async Task<bool> CheckPassword(CustomerLoginDto dto)
        {
            var passWord = Md5Helper.ToMd5(dto.PassWord);
            var res = await _customerPwdRepo.GetAsync(m => m.CustomerNo == dto.CustomerNo && m.CustomerPwd1 == passWord);
            if (res != null) return true;
            return false;
        }
    }


}
